<%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/init.jsp"%>
<div id="exchangelist">
<div class="vvbt" style="margin-top: 20px;">
	<table width="840" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td width="300" class="vvd">会计科目</td>
			<td width="240" class="vvd">金额</td>
			<td width="300" class="vvd">时间</td>
		</tr>
	</table>
</div>
<table width="840" border="0" align="center" cellpadding="0" cellspacing="0">
	<c:forEach var="exchange" items="${page.result }">
		<tr>
			<td width="300" class="vv">${exchange.accountSubject }</td>
			<td width="240" class="vv">${exchange.pay }</td>
			<td width="300" class="vv">
			<fmt:formatDate value="${exchange.createDate}" pattern="yyyy-M-dd HH:mm:ss"/>
			</td>
		</tr>
	</c:forEach>
</table>
<%@ include file="/common/turnpage.jsp"%>
</div>
<script type="text/javascript">
function frontpage(pageNo){
	$.ajax({
		type:'POST',
		url: "${ctx}/exchangelist.action?pageNo="+pageNo,
		dataType:"html",
		success: function(data,status){
			if($.trim(data)!=''){
				$("#exchangelist").html(data);
			}
		},
		error: function(data,status,e){
			alert(e.name);
		}
	});
	//window.frames["exchangelist"].location.href = "${ctx}/exchangelist.action?pageNo="+pageNo;
}

function nextpage(pageNo){
	$.ajax({
		type:'POST',
		url: "${ctx}/exchangelist.action?pageNo="+pageNo,
		dataType:"html",
		success: function(data,status){
			if($.trim(data)!=''){
				$("#exchangelist").html(data);
			}
		},
		error: function(data,status,e){
			alert(e.name);
		}
	});
	//location = "${ctx}/exchangelist.action?pageNo="+pageNo;
	//window.frames["exchangelist"].location.href = "${ctx}/exchangelist.action?pageNo="+pageNo;
}
</script>